<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charSet="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>
        分享
    </title>
    <style>
        .bodybg {
            width: 100%;
            background: #272727;
            height: 100%;
            font-family:"Microsoft YaHei",微软雅黑;
        }
        .toplogo{ background-color:#2b4490;
        min-height:190px;} .articlefont{font-family:"Microsoft YaHei",微软雅黑; color:black;}
    </style>
    {% include 'public_css.html' %}
</head>

<body class="bodybg">

{% include 'home/public_header.html' %}
{% include 'account/head_bar.html' %}
<br>

<div class="container-fluid">
    <a class="btn btn-success" href="/forum/sharing/addition/">添加新分享</a>
</div>
<br>
<div id="sharing_div"  class="container-fluid">
    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="head_recentSharing">
                <h4 class="panel-title">
                    <a data-toggle="collapse"
                       data-parent="#accordion"
                       href="#recentSharing"
                       aria-expanded="true"
                       aria-controls="recentSharing">
                        最新一周分享
                    </a>
                </h4>
            </div>
            <div id="recentSharing" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="head_recentSharing">
                <div class="panel-body">
                    {% for article in obj.sharingList %}
                    {% include 'account/sharing_panel.html' %}
                    {% endfor %}
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="head_allSharing">
                <h4 class="panel-title">
                    <a data-toggle="collapse"
                       data-parent="#accordion"
                       href="#allSharing"
                       aria-expanded="true"
                       aria-controls="allSharing">
                        全部分享
                    </a>
                </h4>
            </div>
            <div id="allSharing" class="panel-collapse collapse" role="tabpanel" aria-labelledby="head_allSharing">
                <div class="panel-body">
                    {% for article in obj.sharingList %}
                    {% include 'account/sharing_panel.html' %}
                    {% endfor %}
                </div>
            </div>
        </div>
    </div>
</div>

{%include 'public_footer.html'%}
{%include 'public_js.html'%}
</body>

</html>
